package com.ltx.vizflowservice.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 项目模板
 * </p>
 *
 * @author 罗添煦
 * @since 2024-11-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("project_template")
public class ProjectTemplate implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 项目模板id
     */
    @TableId(value = "project_template_id", type = IdType.AUTO)
    private Integer projectTemplateId;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 浏览数量
     */
    private Integer viewNum;

    /**
     * 使用数量
     */
    private Integer useNum;

    /**
     * 收藏数量
     */
    private Integer collectNum;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createAt;


}
